const obj = {
    x: 1,
    t: {
        a: 1,
        b: 2
    }
}
const x = 1
const { x: a, t: s } = obj
console.log(x); //1 
console.log(t); //1